/* $Id: ProblemsFormatter.java 110 2011-01-24 21:33:40Z altdotua@gmail.com $ */

package alt.djudge.frontend.server.gui;

import alt.djudge.frontend.server.datatypes.ProblemEntry;


public class ProblemsFormatter extends AbstractFormatter<ProblemEntry>
{	
	@Override
	protected void addClassData(ProblemEntry entry)
	{
		ProblemEntry p = (ProblemEntry) entry;
		
		addTableData(p.getId());
		addTableData(p.getSid());
		addTableData(p.getName());
		addTableData(p.getTimeLimit());
		addTableData(p.getMemoryLimit());
		addTableData(p.getOutputLimit());
		addTableData(p.getDjudgeContest());
		addTableData(p.getDjudgeProblem());
	}

	@Override
	protected void addClassHeaders()
	{
		addTableHeader("ID");
		addTableHeader("Sid");
		addTableHeader("Name");
		addTableHeader("TimeLimit");
		addTableHeader("MemoryLimit");
		addTableHeader("OutputLimit");
		addTableHeader("DjudgeContest");
		addTableHeader("DjudgeProblem");
	}

	@Override
	protected String getCustomRowClass(ProblemEntry entry)
	{
		// TODO Auto-generated method stub
		return null;
	}
}
